// Created: 08/27/2025, ChangJiang Ru
public class EatableTest {
    public static void main(String[] args)
    {
        Eatable[] eatables = new Eatable[3];

        eatables[0] = new Chinese();
        eatables[1] = new America();
        eatables[2] = new Indian();

        for (int i = 0; i < eatables.length; i++)
        {
            eatables[i].eat();
        }
    }
}

class Chinese implements Eatable
{
    @Override
    public void eat()
    {
        System.out.println("Chinese using the chopsticks to eat");
    }
}

class America implements Eatable
{
    @Override
    public void eat()
    {
        System.out.println("America using the fork to eat");
    }
}

class Indian implements Eatable
{
    @Override
    public void eat()
    {
        System.out.println("Indian using the hands to eat");
    }
}
interface Eatable
{
    public abstract void eat();
}
